<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="com.DBtools" %>
    <%@ page import="java.sql.*" %>
<!DOCTYPE html>
<html>
<head>
<%@ include file="../bootstrap.jsp"%>
<!-- 导航栏、左侧栏、内容的样式 -->
<style>
.navbar {
	background-color:SkyBlue;
	margin-bottom:10px;
	padding-top: 20px;
	padding-bottom: 5px;
	position: relative;
	left: 0;
	right: 0;
	height: 70px;
}

.sidebar {
	padding: 10px;
	position: fixed;
	top: 70px;
	bottom: 0;
}
.sidebar a{
	font-weight:bolder;
}
.content {
	position:fixed;
	top:70px;
	right:0;
	bottom: 0;
	overflow: scroll;
}
</style>
<title>管理员界面</title>
</head>
<body>
	<div class="navbar navbar-inverse">
		<h1 style="color:White;font-weight:bolder;">疫情防控管理系统</h1>
		<label> <%out.println("用户："+(String) request.getSession().getAttribute("UserName")+"联系人"+
				(String) request.getSession().getAttribute("UserNum"));%></label>
		
		<a href="../Loginout.jsp" style="color:White;font-weight:bolder;"onClick="return confirm('请确认是否退出登录！')">退出</a>		
	</div>
	<div class="container-fluid main">
		<div class="row">
			<div class="col-md-2 sidebar">
				<ul class="list-group list-group-flush">
					
					<a class="list-group-item list-group-item-action" href="../depcontacts/tealist.jsp" target="main_right">教师管理</a>
					<a class="list-group-item list-group-item-action" href="../depcontacts/checkstata.jsp" target="main_right">打卡统计</a>
					<a class="list-group-item list-group-item-action" href="../depcontacts/checksearch.jsp" target="main_right">综合查询</a>
					<a class="list-group-item list-group-item-action" href="../setpwd.jsp"  target="main_right">密码修改</a>
				</ul>
			</div>
			<% //String bol= (String) request.getSession().getAttribute("UserNum");
			String bol =(String)request.getSession().getAttribute("bol"); 
			
			if(bol!=null&&bol.equals("yes")){%>
			<div>
				<iframe frameBorder="0" name="main_right" src="../main.jsp" 
                  style="width:100%;height:100%;">
				</iframe>
			</div>
			<% }else{%>
			<div class="col-md-10 content pull-right" name="content_right">
				<iframe frameBorder="0" name="main_right" src="../main.jsp" 
                  style="width:100%;height:100%;">
				</iframe>
			</div>
			<%} %>
		</div>
	</div>
</body>
</html>